<!DOCTYPE html>
<html>
	<head>
		<title>个人中心</title>
		<meta name="keywords" content="" />
		<meta name="description" content="">
		<include file="public@head" />
		<style>
			.control-label {
				font-weight: bold;
				float: left;
				width: 70px;
			}
		</style>
	</head>
	<body class="body-white" id="top">
		<div class="container">
			<div class="row">
				<div class="tabs">
					<div class="tab-content">
						<div class="tab-pane active" id="one">
							<div class="wrap js-check-wrap" style="margin-top:3rem;">
							<form class="well form-inline margin-top-20" method="post" action="{:url('Integral/index')}">							
								时间:
								<input type="text" class="form-control js-bootstrap-date" name="start_time" id="start_time" value="{:input('request.start_time')}" style="width: 140px;" autocomplete="off">-
								<input type="text" class="form-control js-bootstrap-date" name="end_time" id="end_time" value="{:input('request.end_time')}" style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
								<input type="submit" class="btn btn-success" value="搜索" />
								<input name='mid' value="{$mid}" style='display:none;'/>
							</form>								
							<table class="table table-hover table-bordered table-striped">
								<thead>
									<tr><span style='color:#5599FF;find-size:15px;'>*绿色表示充值，红色表示消费*</tr>
									<tr>
										<th align="left">编号</th>
										<!-- <th align="left">订单号</th> -->
										<th align="left">会员</th>
										<th align="left">会员卡号</th>
										<th align="left">数量</th>
										<th align="left">收银员</th>
										<th align="left">店铺</th>
										<th align="left">时间</th>															
									</tr>
								</thead>
								<tbody>
									<foreach name="list" item="vo" key='k'>
									<tr style="text-align: center;">
										<td >
										<php>
												if(isset($_GET['page'])){
													echo $k+1+8*($_GET['page']-1);
												}else{
													echo $k+1;
												}
										</php></td>
										<!-- <td>{$vo.orderid}</td> -->
										<td>{:get_member_data($vo['userid'],'uname')}</td>
										<td>{$vo.cardid}</td>
										<td><if condition="$vo['num'] gt 0"><span style="color:#14c314;font-size:18px;">{$vo.num}</span><else/><span style="color:red;font-size:18px;">{$vo.num}</span></if></td>
										<td>{:get_operator_data($vo['operatorid'],'user_login')}</td>
										<td>{:get_store_data($vo['storeid'],'store_name')}</td>
										<td>{$vo.ctime|time_format}</td>					
									</tr>
									</foreach>
								</tbody>
								</table>
								<div class="pagination">{$page}</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- /container -->
		<include file="public@scripts" />
	</body>
</html>